import axios from "../libs/axios";

export const getOverview = () => {
  return axios.request({
    url: "/dateStatistics/totalOverview",
    params: {},
    method: "get",
  });
};
// /dateStatistics/totalOverviewByTime
export const getOverviewByTime = (params) => {
  return axios.request({
    url: "/dateStatistics/totalOverviewByTime",
    params,
    method: "get",
  });
};

export const getOperators = (params) => {
  return axios.request({
    url: "/dateStatistics/streamListTotalByTime",
    params,
    method: "get",
  });
};

export const getOperatorData = (params) => {
  return axios.request({
    url: "/dateStatistics/streamDetailByTime",
    params,
    method: "get",
  });
};